<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
>
<head th:include="admin/partial/bg_template::bg_header">
</head>

<body class="nav-md">
<div class="container body">
    <div class="main_container">
        <div class="col-md-3 left_col" th:include="admin/partial/bg_template::bg_sidebar">
        </div>

        <!-- top navigation -->
        <div class="top_nav" th:include="admin/partial/bg_template::top_nav">
        </div>
        <!-- /top navigation -->

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>编辑文章</h3>
                    </div>

                    <div class="title_right">
                        <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                            <div class="input-group">
                                <input type="text" class="form-control" placeholder="Search for..." readonly>
                    <span class="input-group-btn">
                      <button class="btn btn-default" type="button">Go!</button>
                    </span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>文章设计区 <small>请在下方编辑您的文章信息</small></h2>
                                <ul class="nav navbar-right panel_toolbox">
                                    <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                                    </li>
                                    <li class="dropdown">
                                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="#">Settings 1</a>
                                            </li>
                                            <li><a href="#">Settings 2</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li><a class="close-link"><i class="fa fa-close"></i></a>
                                    </li>
                                </ul>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <br />
                                <!--文章编辑区-->
                                <form id="demo-form2"  th:attr="action=@{/article/commit}" action="" method="post" data-parsley-validate="" class="form-horizontal form-label-left" novalidate="">
                                    <input type="hidden" name="a_id" />
                                    <input type="hidden" name="stars" th:value="4.5">
                                    <!--<input type="hidden" name="createtime" th:value="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd hh:mm:ss')}"/>-->
                                    <!--<input type="hidden" name="authorid" th:value="${currentUser.uid}"/>-->
                                    <input type="hidden" name="authorid"  th:value="${currentUser?.uid}">
                                    <!--<input type="hidden" name="article_number" th:value="#{}"/>-->
                                    <input type="hidden" name="viewcount" th:value="0"/>
                                    <input type="hidden" name="commentcount" th:value="0"/>
                                    <input type="hidden" name="upcount" th:value="0"/>
                                    <input type="hidden" name="downcount" th:value="0"/>
                                    <input type="hidden" name="commentcount" th:value="0"/>
                                    <input type="hidden" name="status" th:value="OFF"/>
                                    <!--第一行 标题、分类、模特名-->
                                    <div class="form-group col-md-12">
                                        <label class="control-label col-md-1" for="article-name">文章标题：</label>
                                        <div class="col-md-5">
                                            <input type="text" id="article-name" required="required" class="form-control col-md-7 col-xs-12" name="title">
                                        </div>
                                        <label class="control-label col-md-1 col-sm-3 col-xs-12" for="article-type">文章标签：</label>
                                        <div class="col-md-5 col-sm-6 col-xs-12">
                                            <input type="text" id="article-type" required="required" class="form-control col-md-7 col-xs-12" name="tag">
                                        </div>
                                    </div>

                                    <!--第二行   文件数、大小、标签-->
                                    <!--<div class="form-group col-md-12">
                                        <label class="control-label col-md-1" for="article-name">文件数量： <span class="required">*</span>
                                        </label>
                                        <div class="col-md-3">
                                            <input type="text" id="article-filecounter" required="required" class="form-control col-md-7 col-xs-12" name="filecounter">
                                        </div>

                                        <label class="control-label col-md-1 col-sm-3 col-xs-12" for="article-type">文章大小： <span class="required">*</span>
                                        </label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" id="article-filesize" required="required" class="form-control col-md-7 col-xs-12" name="filesize">
                                        </div>
                                        <label class="control-label col-md-1 col-sm-3 col-xs-12" for="article-type">文章标签： <span class="required">*</span>
                                        </label>
                                        <div class="col-md-3 col-sm-6 col-xs-12">
                                            <input type="text" id="tag" required="required" class="form-control col-md-7 col-xs-12" name="tag">
                                        </div>
                                    </div>-->
                                    <!--第三行 下载链接-->
                                    <div class="form-group col-md-12">
                                        <label class="control-label col-md-1 ">下载一：</label>
                                        <div class="col-md-5">
                                            <input id="link1" class="date-picker form-control col-md-12 col-xs-12" required="required" type="text" name="downloadlink1">
                                        </div>
                                        <label class="control-label col-md-1 pull-left">下载二（VIP）：</label>
                                        <div class="col-md-5">
                                            <input id="link2" class="date-picker form-control col-md-12 col-xs-12" required="required" type="text" name="downloadlink2">
                                        </div>
                                    </div>
                                    <!--第四行 上传图片-->
                                    <!--最后一行-->
                                    <div class="form-group">
                                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-5">
                                            <button class="btn btn-primary" type="button">取消</button>
                                            <button class="btn btn-primary" type="reset">重置</button>
                                            <button type="submit" class="btn btn-success">提交</button>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-12" style="border: 1px solid black">
                    <div class="">
                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <div class="x_panel">
                                    <div class="x_content">
                                        <p>拖拽图片文件到以下空白处！</p>
                                        <form action="/article/upload" class="dropzone" method="post"></form>
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer th:include="admin/partial/bg_template::footer_content">
        </footer>
        <!-- /footer content -->
    </div>
</div>

<div th:include="admin/partial/bg_template::bg_javascript">
</div>

<!-- Dropzone.js -->

</body>
</html>